/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.eb.entity;

import javax.validation.constraints.NotNull;

import com.kaaction.common.persistence.DataEntity;

/**
 * 商品与分类Entity
 * @author zengbiao
 * @version 2017-04-19
 */
public class ProductClassify extends DataEntity<ProductClassify> {
	
	private static final long serialVersionUID = 1L;
	private Product product;		// product_id
	private Classify classify;		// classify_id
	
	public ProductClassify() {
		super();
	}

	public ProductClassify(String id){
		super(id);
	}

	@NotNull(message="product_id不能为空")
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
	@NotNull(message="classify_id不能为空")
	public Classify getClassify() {
		return classify;
	}

	public void setClassify(Classify classify) {
		this.classify = classify;
	}
	
}